package main

import (
	"fmt"
	"google.golang.org/grpc"
	"net"
	"qq_service/delete_same/protobuf/pb"
	"qq_service/delete_same/server"
)

const Address = ":9004"

func main() {
	listen, err := net.Listen("tcp", Address)
	if err != nil {
		fmt.Println(err)
	}
	s := grpc.NewServer()                                       //新建服务器
	pb.RegisterDeleteSameServiceServer(s, &server.DeleteSame{}) //注册服务器
	s.Serve(listen)                                             //服务

}
